﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TCG
{
    public class Pair<T1, T2>
    {
        public T1 X;
        public T2 Y;
        public Pair(T1 x, T2 y)
        {
            X = x; Y = y;
        }
    }

    public class ResourcePair : Pair<Resource, int>
    {
        public ResourcePair(Resource x, int y)
            : base(x,y)
        {}

        public static explicit operator ResourcePair(KeyValuePair<Resource,int> t)
        {
            return new ResourcePair(t.Key, t.Value);   
        }
    }

    public class SourcePair : Pair<Source, int>
    {
       public SourcePair(Source x, int y)
            : base(x,y)
        {}
    }

   
}
